package com.ai.entity.made;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * PLC日志记录
 * </p>
 *
 * @author jiaok
 * @since 2023-04-18 11:14:01
 */
@Getter
@Setter
@TableName("t_plc_logs")
@ApiModel(value = "PlcLogs对象", description = "PLC日志记录")
public class PlcLogs implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("日志ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("消息内容")
    @TableField("message_content")
    private String messageContent;

    @ApiModelProperty("功能类型")
    @TableField("function_type")
    private Integer functionType;

    @ApiModelProperty("开关状态（1.开启;2.关闭）")
    @TableField("switch_status")
    private Integer switchStatus;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("修改时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty("创建人")
    @TableField("create_user")
    private String createUser;

    @ApiModelProperty("修改人")
    @TableField("update_user")
    private String updateUser;


}
